class Colegiotype < ActiveRecord::Base
  set_table_name 'tipocolegio'

  has_many :colegio

  validates_presence_of :id
  validates_presence_of :nome
  validates_uniqueness_of :id
  validates_numericality_of :id

  def to_s
    self.nome
  end
end
